package com.demo.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 好友关系
 */
@Data
public class Friendship {
    private Long id;
    //用户ID
    private Long userId;
    //好友ID
    private Long friendId;
    //好友用户名称
    private String friendUsername;
    //状态 0:未通过,1:通过
    private Integer status;
    //备注
    private String remark;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //更新时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
